package com.augurit.common.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 应用系统Entity类
 *
 */
@Entity
@Table(name = "AC_APPLICATION")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AcApplication {

	//属性
	private Long appId;				//主键ID
	private String appCode;			//应用编号
	private String appName;			//应用名称
	private String appType;			//应用类型
	private String isActive;		//是否开通，0表示禁用，1表示启用
	private Long servId;			//所属服务器ID
	private String appUrl;			//应用访问地址
	private String appDesc;			//应用描述
	private String appAdminUserIds;	//应用管理员ID集
	private String remark;			//备注
	
	@Id
    @SequenceGenerator(name="SEQ_AC_APPLICATION", sequenceName="SEQ_AC_APPLICATION", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_AC_APPLICATION")
	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getAppType() {
		return appType;
	}

	public void setAppType(String appType) {
		this.appType = appType;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	public Long getServId() {
		return servId;
	}

	public void setServId(Long servId) {
		this.servId = servId;
	}

	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

	public String getAppDesc() {
		return appDesc;
	}

	public void setAppDesc(String appDesc) {
		this.appDesc = appDesc;
	}

	public String getAppAdminUserIds() {
		return appAdminUserIds;
	}

	public void setAppAdminUserIds(String appAdminUserIds) {
		this.appAdminUserIds = appAdminUserIds;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}